JavaScript function block widget
Path: Widget Gallery> Basic> JSFunctionBlock
JavaScript Function Block is a widget that contains JavaScript logic that is executed when tags values change.
Parameter | Description |
---|---|
value1 |
Objects that will trigger the OnDataUpdate action. |
OnDataUpdate |
Action that will be executed when a change of an associated value is detected |
Note: This widget is rendered only in JMobile Studio, and it is not rendered in the HMI device.
Example:
A JavaScript code that check the combination lock of three selectors
See "Widget events"for the description of the onDataUpdate parameters